//将字符串字面量按照指定符号分割为元组，
type SplitString<
  T extends string,
  H extends string,
  F extends any[] = []
> = T extends `${infer L}${H}${infer A}`
  ? SplitString<A, H, [...F, L]>
  : [...F, T];
type A1 = SplitString<"A-dd-44", "-">;// ["A", "dd", "44"]
type A2 = SplitString<"A.dd.44", ".">;// ["A", "dd", "44"]
type A3 = SplitString<"A", ".">;// ["A"]
export {};
